package com.yfp.operation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.common.datascope.annotation.DataScope;
import com.yfp.operation.domain.Marketing;
import com.yfp.operation.domain.dto.MarketingDTO;
import com.yfp.operation.domain.dto.MarketingNoActivityDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admin
 * @description 针对表【marketing(营销主表)】的数据库操作Mapper
 * @createDate 2024-07-17 17:08:44
 * @Entity domain.com.yfp.operation.Marketing
 */
public interface MarketingMapper extends BaseMapper<Marketing> {

    /**
     * 新增
     *
     * @param marketing
     */
    void add(Marketing marketing);

    @DataScope(deptAlias = "ma,mc,mcp")
    List<MarketingDTO> getAllMarketing(MarketingNoActivityDTO activityDTO);

    @DataScope(deptAlias = "mcp,mc")
    List<MarketingDTO> getAllMarketingNoActivity(MarketingNoActivityDTO activityDTO);
}




